﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CustomTexture : CustomGUIControl
{
    public ScaleMode scaleMode = ScaleMode.StretchToFill;
    protected override void StyleOffDraw()
    {
        if (content.image)
        {
            GUI.DrawTexture(guiPos.Pos, content.image, scaleMode);
        }
    }

    protected override void StyleOnDraw()
    {
        if (content.image)
        {
            GUI.DrawTexture(guiPos.Pos, content.image, scaleMode);
        }
    }
}
